import { RegisterPage } from "../root";

const seetingSchema = {
  title: "设置",
  body: {
    type: "form",
    mode: "horizontal",
    initApi: "/api/setting",
    api: "post:/api/setting",
    title: "",
    controls: [
      {
        name: "org_type",
        type: "combo",
        label: "机构类型",
        inputClassName: 'w',
        multiple: true,
        controls: [
          {
            type: "text",
            name: "name",
            placeholder: "请输入名称"
          }
        ]
      },

      {
        type: "divider"
      },

      {
        name: "project_type",
        type: "combo",
        label: "服务类别",
        inputClassName: 'w',
        multiple: true,
        controls: [
          {
            type: "text",
            name: "name",
            placeholder: "请输入名称"
          }
        ]
      },

      {
        type: "divider"
      },

      {
        name: "service_target",
        type: "combo",
        label: "服务对象",
        inputClassName: 'w',
        multiple: true,
        controls: [
          {
            type: "text",
            name: "name",
            placeholder: "请输入名称"
          }
        ]
      },

      {
        type: "divider"
      },

      {
        name: "team_type",
        type: "combo",
        label: "团队类型",
        multiple: true,
        inputClassName: 'w',
        controls: [
          {
            type: "text",
            name: "name",
            placeholder: "请输入名称"
          }
        ]
      },

      {
        type: "divider"
      },

      {
        name: "volunteer_security",
        type: "combo",
        label: "志愿保障",
        multiple: true,
        inputClassName: 'w',
        controls: [
          {
            type: "text",
            name: "name",
            placeholder: "请输入名称"
          }
        ]
      }
    ]
  }
};

RegisterPage({
  path: "settings",
  label: "设置",
  icon: "fa fa-cog",
  schema: seetingSchema,
  url: "/settings",
  acl: 'settings:admin'
});
